home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3mpleve.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  6.7 KB  |  226 lines

  1.  
  2. // JavaScript wrapper for r3mpleve.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_MPLEVEL_H = 1;
  7. include("real/code/r3matprp.js")
  8.  
  9.  
  10. var R3CLID_MPLEVEL = 396;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Enumerates defined local variables. The callback method is send as follows: R3SendMsgA3((R3OBJ *)p1, (R3INT)p2,
  16. //      char *name, (R3INT)id, (void *)msg);
  17. // Virtual method
  18. // p1: Object, callback object
  19. // p2: Integer, callback method
  20. // p3: Object, user specific data
  21.  
  22. R3MPLEVM__WAS_ENUMVARIABLES = 396000;
  23.  
  24. function mR3MPLEVM__WAS_ENUMVARIABLES(p1, p2, p3) {
  25.   DoA3(this.r3obj, 396000, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
  26. }
  27.  
  28. // Description: Create a new local variable for the shader
  29. // Virtual method
  30. // Returns: Integer, variable id unique in this shader
  31. // p1: String, name for the variable
  32. // p2: Integer, type id
  33. // p3: Integer, see codes below
  34.  
  35. R3MPLEVM__WAS_NEWVARIABLE = 396001;
  36.  
  37. function mR3MPLEVM__WAS_NEWVARIABLE(p1, p2, p3) {
  38.   return   DoA3(this.r3obj, 396001, p1, R3TID_STRING, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
  39. }
  40.  
  41. // Description: Delete local variable
  42. // Virtual method
  43. // Returns: Boolean, TRUE if found
  44.  
  45. R3MPLEVM__WAS_DELVARIABLE = 396002;
  46.  
  47. function mR3MPLEVM__WAS_DELVARIABLE() {
  48.   return   DoA(this.r3obj, 396002, 0, R3TID_INTEGER, 0);
  49. }
  50.  
  51. // Description: Rename local variable
  52. // Virtual method
  53. // Returns: Boolean, TRUE if found
  54.  
  55. R3MPLEVM__WAS_RENAMEVARIABLE = 396003;
  56.  
  57. function mR3MPLEVM__WAS_RENAMEVARIABLE() {
  58.   return   DoA(this.r3obj, 396003, 0, R3TID_INTEGER, 0);
  59. }
  60.  
  61. // Description: Change the type of local variable
  62. // Virtual method
  63. // Returns: Boolean, TRUE if found
  64. // p3: Integer, type id
  65.  
  66. R3MPLEVM__WAS_SETVARIABLETYP = 396004;
  67.  
  68. function mR3MPLEVM__WAS_SETVARIABLETYP(p3) {
  69.   return   DoA(this.r3obj, 396004, p3, R3TID_INTEGER, 0);
  70. }
  71.  
  72. // Description: Change the type of local variable
  73. // Virtual method
  74. // Returns: Integer, type id of the variable, or NULL if a variable with the given name
  75. //      is not defined
  76.  
  77. R3MPLEVM__WAS_GETVARIABLETYP = 396005;
  78.  
  79. function mR3MPLEVM__WAS_GETVARIABLETYP() {
  80.   return   DoA(this.r3obj, 396005, 0, R3TID_INTEGER, 0);
  81. }
  82.  
  83. // Description: Enumerates defined local stack items. The callback method is sent as follows: R3Do3((R3OBJ *)p1,
  84. //      (R3INT)p2, char *name, (R3INT)id, R3MPLEVA_StackCallDepth, depth, R3MATPRPA_OutputType, type, R3MATPRPA_OutputChannel, channel_clid, R3MATPRPA_OutputIdentifier, id, R3RA_HookData, context, R3TAG_END);
  85. // p1: Object, callback object
  86. // p2: Integer, callback method
  87. // p3: Tag[]
  88.  
  89. R3MPLEVM_ENUMSTACKITEMS = 396006;
  90.  
  91. function mR3MPLEVM_ENUMSTACKITEMS(p1, p2, p3) {
  92.   Do3(this.r3obj, 396006, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_TAG, R3TNF_ARRAY);
  93. }
  94.  
  95. // Description: Insert a shader under parent
  96. // Returns: Object, address of the shader object or NULL if failed
  97. // p1: Object, if not NULL insert child after this. if p1 == obj then insert child
  98. //      as the 1st shader.
  99. // p3: Object, child shader
  100.  
  101. R3MPLEVM_INSERTPROP = 396007;
  102.  
  103. function mR3MPLEVM_INSERTPROP(p1, p3) {
  104.   return R3ToJS(  DoA2(this.r3obj, 396007, p1, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0));
  105. }
  106.  
  107. // Description: callback method for R3MATPRPCA_SetParentXxx.
  108. // p1: Object, old parent
  109. // p2: Object, new parent
  110. // p3: Object, child whose parent is to be changed.    
  111.  
  112. R3MPLEVCM_SETPARENT = 396008;
  113.  
  114. function mR3MPLEVCM_SETPARENT(p1, p2, p3) {
  115.   DoA3(this.r3obj, 396008, p1, R3TID_OBJECT, 0, p2, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0);
  116. }
  117.  
  118. // Description: Insert new object after the given node
  119. // Returns: Boolean, true of node was found
  120. // p1: Boolean, don't send childchanged method
  121. // p2: Object, previous object
  122. // p3: Object, object to be inserted    
  123.  
  124. R3MPLEVM_INSERT = 396009;
  125.  
  126. function mR3MPLEVM_INSERT(p1, p2, p3) {
  127.   return   DoA3(this.r3obj, 396009, p1, R3TID_BOOLEAN, 0, p2, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0);
  128. }
  129.  
  130. // Description: Insert given object to the head of the children list
  131. // p1: Boolean, don't send childchanged method
  132. // p3: Object, object to be inserted
  133.  
  134. R3MPLEVM_ADDHEAD = 396010;
  135.  
  136. function mR3MPLEVM_ADDHEAD(p1, p3) {
  137.   DoA2(this.r3obj, 396010, p1, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0);
  138. }
  139.  
  140. // Description: Inserts new sub object at the head of the children list
  141. // p1: Boolean, don't send childchanged method
  142. // p3: Object, address of the object to be inserted
  143.  
  144. R3MPLEVM_ADDTAIL = 396011;
  145.  
  146. function mR3MPLEVM_ADDTAIL(p1, p3) {
  147.   DoA2(this.r3obj, 396011, p1, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0);
  148. }
  149.  
  150. // Description: Remove the given children from the children list
  151. // p3: Object, sub object to be removed
  152.  
  153. R3MPLEVM_REMOVE = 396012;
  154.  
  155. function mR3MPLEVM_REMOVE(p3) {
  156.   DoA(this.r3obj, 396012, p3, R3TID_OBJECT, 0);
  157. }
  158.  
  159.  
  160.  
  161.  
  162. R3MPLEVA_Children = 396500;
  163. function GetR3MPLEVA_Children() {
  164.   return R3Get(this.r3obj, R3MPLEVA_Children, R3TID_LIST, R3TNF_ARRAY); 
  165. }
  166.  
  167. R3MPLEVA_Variables = 396501;
  168. function SetR3MPLEVA_Variables(value) {
  169.   R3Set(this.r3obj, R3MPLEVA_Variables, value, R3TID_LIST, 0); 
  170. }
  171.  
  172. R3MPLEVA_StackTotalCount = 396502;
  173. function GetR3MPLEVA_StackTotalCount() {
  174.   return R3Get(this.r3obj, R3MPLEVA_StackTotalCount, R3TID_INTEGER, 0); 
  175. }
  176.  
  177. var R3MPLEVA_StackCallDepth = 396503; // Integer
  178. R3MPLEVA_StackLocalCount = 396504;
  179. function GetR3MPLEVA_StackLocalCount() {
  180.   return R3Get(this.r3obj, R3MPLEVA_StackLocalCount, R3TID_INTEGER, 0); 
  181. }
  182.  
  183. R3MPLEVA_Open = 396505;
  184. function SetR3MPLEVA_Open(value) {
  185.   R3Set(this.r3obj, R3MPLEVA_Open, value, R3TID_INTEGER, 0); 
  186. }
  187.  
  188. function GetR3MPLEVA_Open() {
  189.   return R3Get(this.r3obj, R3MPLEVA_Open, R3TID_INTEGER, 0); 
  190. }
  191.  
  192. var R3MPVAR_STATIC = 0;
  193. var R3MPVAR_AUTO = 1;
  194.  
  195.  
  196. function r3Mplevel () { 
  197.    this.base = r3God;
  198.    if(arguments.length) {
  199.       this.base(R3CLID_MPLEVEL, arguments);
  200.    }
  201.    // Methods
  202.    this._WAS_ENUMVARIABLES=mR3MPLEVM__WAS_ENUMVARIABLES;
  203.    this._WAS_NEWVARIABLE=mR3MPLEVM__WAS_NEWVARIABLE;
  204.    this._WAS_DELVARIABLE=mR3MPLEVM__WAS_DELVARIABLE;
  205.    this._WAS_RENAMEVARIABLE=mR3MPLEVM__WAS_RENAMEVARIABLE;
  206.    this._WAS_SETVARIABLETYP=mR3MPLEVM__WAS_SETVARIABLETYP;
  207.    this._WAS_GETVARIABLETYP=mR3MPLEVM__WAS_GETVARIABLETYP;
  208.    this.ENUMSTACKITEMS=mR3MPLEVM_ENUMSTACKITEMS;
  209.    this.INSERTPROP=mR3MPLEVM_INSERTPROP;
  210.    this.SETPARENT=mR3MPLEVCM_SETPARENT;
  211.    this.INSERT=mR3MPLEVM_INSERT;
  212.    this.ADDHEAD=mR3MPLEVM_ADDHEAD;
  213.    this.ADDTAIL=mR3MPLEVM_ADDTAIL;
  214.    this.REMOVE=mR3MPLEVM_REMOVE;
  215.  
  216.    // Attributes
  217.    this.GetChildren=GetR3MPLEVA_Children;
  218.    this.SetVariables=SetR3MPLEVA_Variables;
  219.    this.GetStackTotalCount=GetR3MPLEVA_StackTotalCount;
  220.    this.GetStackLocalCount=GetR3MPLEVA_StackLocalCount;
  221.    this.GetOpen=GetR3MPLEVA_Open;
  222.    this.SetOpen=SetR3MPLEVA_Open;
  223. }
  224.  
  225. r3Mplevel.prototype=new r3Matprop;
  226. // r3mpleve.h_H